#target libnne50v2.so:src/mem/dram.cpp
#	g++ -std=c++11 -fPIC -I./include src/mem/dram.cpp -shared -o libnne50v2.so
ROOTDIR = $(CURDIR)
# Specify an alternate output directory relative to ROOTDIR. Default build
OUTPUTDIR = $(if $(OUTDIR), $(OUTDIR), build)

.PHONY: clean all test
all:
	@mkdir -p $(OUTPUTDIR) && cd $(OUTPUTDIR) && cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .. && $(MAKE)

clean:
	@mkdir -p $(OUTPUTDIR) && cd $(OUTPUTDIR) && cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .. && $(MAKE) clean
